package com.swagger.demo.admin;

import com.jfinal.core.Controller;
import com.jfinal.core.Path;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * @author: lbq
 * @email: 526509994@qq.com
 * @date: 2022/6/24
 */
@Path("/")
@Api(tags = "首页跳转",position = 1)
public class IndexController extends Controller {

    @ApiOperation("自动跳转swagger文档")
    public void index() {
        this.redirect("/swagger");
    }

    @ApiOperation("hello world")
    public void hello(){
        this.renderText("hello world");
    }
}
